/*
* 该文件由工具生成，请勿更改
* 接口说明null
* 创建时间：2018/6/8 14:06:57
**/
using System;
using System.Collections.Generic;
using System.Linq;
using Pacs.Services.Soa;
using System.Text;
using System.Threading.Tasks;
using Pacs.DAL.AutoGens;

namespace Pacs.Services.Server.SYS_USERLOGINREQUEST
{
     public partial  class SYS_USERLOGINREQUEST:ServiceBase
     {
          public DTOResponse<SYS_USERLOGINREQUESTResponseParam> Excute(SYS_USERLOGINREQUESTRequest request)
          {
            var name = request.Body.UserName;
            var sysUserDAL = new SysUser();
            var entity = sysUserDAL.GetModel(name);
            if(entity != null)
            {
                return new DTOResponse<SYS_USERLOGINREQUESTResponseParam>
                    (new SYS_USERLOGINREQUESTResponseParam {SysUser = entity });
            }
            return null;
            //else
            //{
            //    return this.Fail<string>(new List<string> {"" });
            //}
          }
      }
}
